package com.ansuenjob.jsonBuilder;

import org.json.JSONException;
import org.json.JSONObject;

import com.ansuenjob.model.Resume;

public class ResumeBuilder extends JSONBuilde {

	@Override
	public Resume buildJson(JSONObject jsonObject) throws JSONException {
		Resume res = new Resume();
		int resid = jsonObject.getInt("resid");
		res.setResumeId(resid);
		String resumeName = jsonObject.getString("resumeName");
		res.setResumeName(resumeName);
		return res;
	}

}
